package com.atguigu.ssm.mapper;

import com.atguigu.ssm.pojo.Dept;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author
 * @create 2021/10/25 14:51
 */
@Component
public interface DeptMapper {

    /**
     * 查询所有部门信息
     */
    public List<Dept> selectAllDepts();


    /**
     * 添加部门信息
     */
    public void insertDept(Dept dept);

    void deleteById(@Param("deptId") Integer deptId);

    Dept getDeptById(Integer deptId);

    void update(Dept dept);

    Dept selectByDept(Dept dept);

}
